<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");
session_start();
$_LangPath = "changewagerList";
include_once(__Admin_Path."/logincheck_op.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/ChangeTime.lib.php");

$arrPower = CheckUsePower("changewagerlist");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);
eregi("<!--changewagerlist start-->(.*)<!--changewagerlist end-->",strtolower($_SESSION["Admin_Info"] -> ProgramPower), $arrPower);


$strSQL = "select a.UserID, a.WagerID, a.CType, a.IP, a.AddTime, b.Account from `bet_ChangeWagerStatusLog` a, `bet_Member` b where a.WagerID = '".$_data["WagerID"]."' and a.UserID = b.ID order by a.ID desc";
if(!$RS = @PMA_mysql_query($strSQL, $$_Conn)){
	$GLOBALS["errormessage"] = "Find Data Error!";
	$GLOBALS["errorhidden"] = "SQL: ".$strSQL.", \nError: ".PMA_mysql_error($$_Conn).", \nLine: ".__LINE__.", \nPage: ".__FILE__;
	ErrMsgOutputHTML("Error", "", 1);
}
?><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/css/backend.css" type="text/css">
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" bgcolor="#0054E3F"><tr><td>
<table width="520" border="0" cellpadding="3" cellspacing="1" style="font-size: 12px">
<tr bgcolor="#7A96E9" align="center">
<td width="50"><?php print $_strChangeWagerList["ChangeUser"];?></td>
<td width="80"><?php print $_strChangeWagerList["ChangeWager"];?></td>
<td width="80"><?php print $_strChangeWagerList["ChangeType"];?></td>
<td width="100">IP</td>
<td width="120"><?php print $_strChangeWagerList["ChangeTime"];?></td>
</tr><?php
while($Rows = PMA_mysql_fetch_object($RS)){
	?>
<tr class="datarow" bgcolor="#FFFFFF">
<td><?php print $Rows -> Account;?></td>
<td align="right"><?php print $Rows -> WagerID;?></td>
<td align="center"><?php
	switch($Rows -> CType){
		case -2:
			print "<b style=\"color:#FF0000\">Not Deal</b>";
			break;
		case -1:
			print "<b style=\"color:#FF0000\">".$_strChangeWagerList["NotAccept"]."</b>";
			break;
		default:
			print $_strChangeWagerList["Accept"];
			break;
	}
?></td>
<td align="center"><?php print $Rows -> IP;?></td>
<td align="center"><?php 
	$arrD = split(" ", $Rows -> AddTime);
	print DateForm($arrD[0], $arrD[1], "Y-m-d H:i:s");
?></td>
</tr>
	<?php
}
?>
</table>
</td></tr>
</table>
<?php @mysql_close($$_Conn);?>